<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<%--@elvariable id="handler" type="com.youtills.core.app.dev.HexRequestHandler"--%>

<div id="base64">
    <h2>String to Hex / Hex to String - Conversion</h2>
    <form method="post" action="hex">
        <div>
            <label for="charsetName">CharsetName: </label>
            <input type="text" name="charsetName" id="charsetName" value="${handler.charsetName}"/>
        </div>
        <div><label for="src">Input:</label></div>
        <div><textarea name="src" id="src" style="height:191px;width:700px;">${handler.src}</textarea></div>
        <div>
            Convert To:
            <input type="submit" name="action" value="Hex">
            <input type="submit" name="action" value="Text">
        </div>
        <c:if test="${!empty handler.result}">
        <div id="output">Output: </div>
        <textarea class="pre" style="height:191px;width:700px;" readonly="readonly">${handler.result}</textarea>
        </c:if>
    </form>
</div>